
package com.hlkj.pay.infrastructure.model.common;

import java.math.BigDecimal;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 平台应用信息表
 * 
 * @TableName t_merchant_apps
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_merchant_limit_router_log")
public class LimitRouterLogDO extends BaseDO {

    /**
     * 应用appid
     */
    @NotBlank(message = "[应用appid]不能为空")
    @Size(max = 64, message = "编码长度不能超过64")
    @Schema(description = "应用appid")
    private String appId;
    @Schema(description = "轮询方式 0:机构通道轮询 1:AT通道轮询")
    private Integer routerType;
    @Schema(description = "轮询失效类型 1:交易状态 2:风险状态 3:成功率 4:交易金额")
    private Integer limitType;
    @Schema(description = "时间周期")
    private Integer limitMinutes;
    @Schema(description = "规则值")
    private BigDecimal limitValue;
    @Schema(description = "实际值")
    private BigDecimal value;
    @Schema(description = "限制的编码")
    private String limitCode;
    @Schema(description = "下一个编码")
    private String nextCode;
    @Schema(description = "是否关闭主通道 0 否 1 是")
    private Integer limitChannel;


}
